﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Agr.CQRS.Infrastructure.ServiceBus
{
    public delegate void ServiceBusEventHandler<T>(T ev);

    public interface IServiceBus
    {
        void Publish<T>(T ev);
        void Subscribe<T>(ServiceBusEventHandler<T> eventHandler);
    }
}
